package com.tchintech.pay.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Created by Administrator on 2017/7/3 0003.
 */

public class PropUtils {
    /**
     * @param fileName properties 文件名 不加后缀
     * @return
     */
    public static Properties getProp(String fileName) {
        Properties properties = new Properties();
        InputStream is = null;
        try {
            is = PropUtils.class.getResourceAsStream("/assets/" + fileName + ".properties");
            properties.load(is);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return properties;
    }
}
